import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/sd_city_db_attacked_analysis/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (attackedCity) => {
  return request({
    url: '/api/sd_city_db_attacked_analysis/detail',
    method: 'get',
    params: {
      attackedCity
    }
  })
}

export const getAttackSdDbCountry = (current, size, params) => {
  return request({
    url: '/api/sd_city_db_attacked_analysis/getAttackSdDbCountry',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
